package practice;

/** 水仙花数 */
public class Daffodil {

	public static void main(String[] args) {
		for (int n = 100, a, b, c, t; n < 1000; n++) {
			t = n;
			c = t % 10;
			t /= 10;
			b = t % 10;
			a = t / 10;
			if (a*a*a + b*b*b + c*c*c == n)
				System.out.println(n);
		}
	}

}
